package com.example.zhilongzhang.constructionpayapp.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.zhilongzhang.constructionpayapp.R;
import com.example.zhilongzhang.constructionpayapp.base.BaseActivity;

public class MoneyOKActivity extends BaseActivity {

    TextView tvAddress,tvTime,tvPrice;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_money_ok);
        tvPrice=findViewById(R.id.tv_ok_price);
        tvAddress=findViewById(R.id.tv_ok_address);
        tvTime=findViewById(R.id.tv_ok_time);
        initData();
    }
    private void initData(){
        findViewById(R.id.left).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               startActivity(new Intent(MoneyOKActivity.this,MainActivity.class));
            }
        });
        tvPrice.setText("￥"+getIntent().getStringExtra("money"));
        tvAddress.setText(getIntent().getStringExtra("address"));
        tvTime.setText(getIntent().getStringExtra("data"));
    }

}
